package BinaryAndInterpolationSearch;

import java.util.Arrays;

public class BinaryAndInterpolationSearch {
    public static void main(String[] args){
        int arr[]={1,2,3,4,5,6,7,8,9,10};
        System.out.print(Setting.binary(0,arr.length-1,arr,11));
        System.out.println();
        int arr02[]={1,2,2,3,3,4,5,5,6,6,7,7,8,8,9,10};
        System.out.print(Setting.binary02(0,arr02.length-1,arr02,101));
        System.out.println();
        int arr03[]={1,1,1,2,2,2,3,4,5,6,7,8,8,8,8,9,1000000};
        System.out.print(Setting.Interpolation(0,arr03.length-1,arr03,10000001));
    }
}
